(utf-16-decode-ucs): Handle a surrogate
authorKenichi Handa <handa@m17n.org>
Sat, 12 Jun 2004 02:18:36 +0000 (02:18 +0000)
committerKenichi Handa <handa@m17n.org>
Sat, 12 Jun 2004 02:18:36 +0000 (02:18 +0000)
commit130086aac6e7f9cbd5837e9fb6e2713eb94c8bda
treefdd22d29662adbf970333175231a6e381e85e59e
parentfadd5ef0d17bd4bb112eab98289d075e661f8c47
(utf-16-decode-ucs): Handle a surrogate
pair correctly.  Call ccl-mule-utf-untrans for untranslable chars.
(utf-16le-decode-loop): Set r5 to -1 before loop.
(utf-16be-decode-loop): Likewise.
(ccl-decode-mule-utf-16le): Add EOF processing block.
(ccl-decode-mule-utf-16be): Likewise.
(ccl-decode-mule-utf-16le-with-signature): Likewise.
(ccl-decode-mule-utf-16be-with-signature): Likewise.
(ccl-decode-mule-utf-16): Likewise.  Set r5 to -1 initially.
(ccl-mule-utf-16-encode-untrans): New CCL.
(utf-16-decode-to-ucs): Handle pre-read character.
(utf-16le-encode-loop): Handle surrogate pair.
(utf-16be-encode-loop): Likewise.
(ccl-encode-mule-utf-16le-with-signature): Adjusted for the change
of utf-16le-encode-loop.
(ccl-encode-mule-utf-16be-with-signature): Adjusted for the change
of utf-16be-encode-loop.
(mule-utf-16-post-read-conversion): Call
utf-8-post-read-conversion at first.
(mule-utf-16[{le|be}], mule-utf-16{le|be}-with-signature): Include
CJK charsets in safe-charsets if utf-translate-cjk-mode is on.
Add post-read-conversion and pre-write-conversion.
lisp/international/utf-16.el